package cn.kgc.javaweb.service;

import cn.kgc.javaweb.entity.Role;
import cn.kgc.javaweb.mapper.RoleMapper;
import cn.kgc.javaweb.utils.MapperUtil;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/28
 */
public class RoleServiceImpl  implements RoleService{

    private RoleMapper roleMapper = MapperUtil.getSqlSession().getMapper(RoleMapper.class);
    @Override
    public List<Role> findAllRoles() {

       List<Role>  roles =  roleMapper.selectAllRoles();

        return roles;
    }
}
